<?php

namespace app\api\controller\sys;

use app\common\controller\ApiBasic;
use app\common\service\sys\DictService;

class Dict extends ApiBasic
{
  public function getdict()
  {
    if (request()->isGet()) {
      $data = DictService::getDictAll(env('COMPANY_ID',11));//默认 盛筑科技 ID 11
      return _result(1,$data,3009);
    }
    return _result(0,[],3010);
  }
}
